-
Notifications
You must be signed in to change notification settings - Fork 55
feat: Add animation for position switching to dock. #1121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideThis pull request introduces animations for dock position switching. It achieves this by adding two File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @wjyrich - I've reviewed your changes - here's some feedback:
- Each call to
onTriggeredfor a position change connects a new handler tohideDockAnimation.onStopped; this could result in multiple handlers executing. Consider disconnecting the handler after it runs once. - Consider relocating the animation logic for position changes from
EnumPropertyMenuItemto a more specialized component or handler to keepEnumPropertyMenuItemgeneric.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| checked = Qt.binding(function() { | ||
| return Applet[prop] === value | ||
| }) | ||
| if (prop === "position") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Avoid creating multiple onStopped connections on hideDockAnimation.
Each time the 'position' branch runs, you reconnect the onStopped handler, leading to duplicate calls. Use a one-shot connection or disconnect the existing handler before reconnecting.
as title. pms-bug-271145
deepin pr auto review代码审查意见:
以上是针对代码审查的一些意见,希望能够对您有所帮助。 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: BLumia, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
as title.
pms-bug-271145
Summary by Sourcery
Add smooth animation when switching dock position to improve user experience
New Features:
Bug Fixes:
Enhancements: